package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;

public interface UserService {

    //遍历角色和权限 用于根据角色显示不同菜单
    //    User findUser(String username);
    public User findByUsername(String username);


    void add(User user, Integer[] roleIds);

    PageResult pageQuery(QueryPageBean queryPageBean);

    //仅查询用户基本信息 无权限信息
    User copyback(String username);

    List<Integer> copybackids(Integer id);

    void edit(User user, Integer[] roleIds);

    void del(Integer id);

    List<User> findalluser();

}
